package com.atguigu.blog.result;

import lombok.Getter;

/**
 * @author CF
 * @date 2023/8/19 8:30
 */
@Getter
public enum ResultCodeEnum {

    SUCCESS(200,"成功"),
    FAIL(201,"失败"),
    USERNAME_ERROR(501, "用户名错误"),
    PASSWORD_ERROR(502,"密码错误" );
    private Integer code;
    private String message;
    private ResultCodeEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

}
